/* To change this template, choose Tools | Templates
* and open the template in the editor.
*/


//// MOMENTANEAMENTE INUTILIZADA 10/7/2012

package principal;

import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Nico
 */
public class SINUSOesperar implements Runnable {

    ServidorIniciado pri;
    Thread hilo = new Thread(this);
    int f;

    SINUSOesperar(ServidorIniciado s, int funcion){
        super();
        pri = s;
        f = funcion;
    }

    public void start(){
        hilo.start();
    }

    public void run() {
        try {
            Thread.sleep(60);
        } catch (InterruptedException ex) {
            Logger.getLogger(SINUSOesperar.class.getName()).log(Level.SEVERE, null, ex);
        }

        switch(f){
            case 0:
                pri.esperan(false);
                break;
            case 1:
                pri.buscan(false);
                break;
        }
    }

}